Information file recording apparatus

ABSTRACT

A recording apparatus for creating under a directory a plurality of information files each having information data and creation date information, and recording the information files to a recording medium in which a name of the directory is changed according to a predetermined change in a range of the creation dates of the files being stored in the directory.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a recording apparatus, and more specifically to an apparatus for generating a directory and recording information files.

[0003] 2. Related Background Art

[0004] In recent years many digital cameras have been put on the market. At present, many of the digital cameras on the market record photographed images onto a memory card that is removable from a main body of the camera. These digital cameras have a construction in which a file system in the memory card can be recognized by a personal computer, whereby an image file recorded on the memory card can be sent easily to the computer (referred to hereinafter as a “PC”).

[0005] It is generally common for the file system in the memory card that the maximum number of image files which can be saved in one directory is limited by means of a file number or such, and a subsequent directory is created for image files which exceed the number to save them there. In this case, the camera automatically creates an image file name and a directory name at the time when the photographic image or the like is taken.

[0006] One example of such a method of generating a directory name is described in Japanese Patent Application Laid-open No. 11-164234. According to this, when a new directory is to be generated a directory name which includes a date and/or a time is created, so that the directory name will always be unique, and thus the directory name does not have to be changed when images are copied to the PC together with the directory.

[0007] However, according to the method described in the above document, while the time and date on which each directory was made can be readily understood, it is still difficult to know the time and date on which each of the image files saved in the directory were taken. In particular, in the case of that only one directory is copied onto the PC from among a plurality of directories created on the memory card, in order to confirm the range of the photographing dates of the image files stored in the directory, there is no choice but to open up that directory and refer to the recorded dates and times of each file, which is troublesome.

SUMMARY OF THE INVENTION

[0008] An object of the present invention is to solve the above-mentioned problems.

[0009] Another object of the present invention is to make attributions of the information files in the directory easily recognizable.

[0010] In order to attain these objects, according to one aspect of the present invention, there is provided a recording apparatus comprising: a recording medium interface arranged to create a plurality of information files under a directory and record the information files on a recording medium; a creation date detection means for detecting creation dates of the information files; and a control means for changing a name of the directory to a name indicating a creation date detected by the creation date detection means, according to a predetermined change in a storage state of the information files in the directory.

[0011] The other objects of the present invention and the features thereof will become apparent upon reading the following detailed description of the embodiments of the invention, referring to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In the accompanying drawings:

[0013]FIG. 1 is a block diagram showing an outline structure of one embodiment of the present invention;

[0014]FIG. 2 is a diagram showing an example of a directory structure of the embodiment of the present invention;

[0015]FIG. 3 is an operation flow chart of the embodiment of the present invention; and

[0016]FIG. 4 is an operation flow chart of the embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, explanation will be made of an embodiment of the present invention, making reference to the drawings.

[0018]FIG. 1 is a block diagram showing an outline construction of an image pickup apparatus 100 as an embodiment of the present invention.

[0019] In FIG. 1, reference numeral 10 is a photographic lens, being comprised, for example, of a fixed lens group for condensing light, a variable-power lens group, a diaphragm and a compensation lens group which has both a function of compensating an image-formation position which is shifted in accordance with movement of the variable-power lens group, and a function of adjusting the focus. Reference numeral 12 is a CDD-type image pickup element for converting an optical image formed by the photographic lens 10 into an electric signal. Reference numeral 13 is a CDD drive circuit for driving the image pickup element 12.

[0020] Reference numeral 14 is an analog signal processing circuit for performing predetermined analog processing on an analog output signal from the image pickup element 12. The analog signal processing circuit 14 is comprised, for example, of a CDS (co-related double sampling) circuit, an AGC circuit or the like. Reference numeral 16 is an A/D converter for converting the analog output of the analog signal processing circuit 14 into a digital signal. Reference numeral 18 is a digital signal processing circuit for performing predetermined digital processing on output data of the A/D converter 16. Reference numeral 19 is an output circuit for converting the output data from the digital signal processing circuit 18 or output from a compression and expansion circuit 20 into data of a format which is suitable for output to an external monitor 20.

[0021] Reference numeral 20 is the compression and expansion circuit for compressing and expanding an image signal according to a JPEG format or the like. Reference numeral 22 is a memory card, 24 is a memory card interface for mediating exchange of data between the memory card 22 and the compression and expansion circuit 20.

[0022] Reference numeral 26 is a control circuit for controlling the image pickup apparatus 100 as a whole, and it has a microcomputer. Reference numeral 28 is a clock module for outputting a signal indicating the current date and time, and reference numeral 30 is a operation switch for transmitting a user operation to the control circuit 26. The function of the clock module 28 may be realized by means of a timer built into the microcomputer. The operation switch 30 is comprised, for example, of a mode-switching switch, a photograph trigger switch, a zoom lever and the like.

[0023] A memory card interface 24 follows commands from the control circuit 26 and adds a designated name or the like to compressed image data from the compression and expansion circuit 20 and converts this image data into an image information file having a format determined by a file system and writes this file into the memory card 22, and also, reads a designated image file from the memory card 22 and provides it to the compression and expansion circuit 20. The image data read out from the memory card 22 is decoded and expanded by the compression and expansion circuit 22, and outputted to the output circuit 19.

[0024] Via the memory card interface 24, the control circuit 26 can create a directory in the memory card 22 and changes the name thereof, and can also execute file management such as writing to and reading from the file.

[0025] The memory card 22 has a non-volatile semiconductor memory built therein, and it is capable of being removed from the main body of the image pickup apparatus 100 via a slot which is not shown in the diagram. A circuit for controlling the non-volatile semiconductor memory inside the memory card 22 may be arranged inside the memory card 22, or may be arranged at the memory card interface 24. The file system in the memory card 22 is so constructed that it can be accessed by a personal computer.

[0026] Further, the image pickup apparatus 100 of FIG. 1 is equipped with an output circuit 19 for outputting a video signal to the external monitor 200. The user can operate the switch 30 to select and display either of the following onto the monitor 31: an image obtained by means of the image pickup element 12 and based on the image signal outputted from the digital signal processing circuit 18, or a reproduced image based on the image signal read out from the memory card 22.

[0027] The image pickup apparatus 100 of the present embodiment has a recording mode for recording onto the memory card 22 the image signal obtained by means of the image pickup element 12, and a reproduction mode for designating an image file recorded in the memory card 22 in order to reproduce or delete the file, and these modes can be switched by the user by operating the operation switch 30.

[0028] In the recording mode the control circuit 26 controls the output circuit 19 and outputs to the monitor 31 the output signal outputted from the digital signal processing circuit 18. Then, when the user controls the operation switch 30 so as to give an instruction for photographing an image, the control circuit 26 outputs a control signal to the compression and expansion circuit 20. At the time when the instruction occurs, the compression and expansion circuit 20 records into the internal memory a one-frame image signal outputted from the digital signal processing circuit 18, encodes the one-frame image signal and compress its information size. The compressed image signal is outputted to the memory card interface 24 according to an appropriate timing. The memory card interface 24 generates an image file according to the instructions from the control circuit 26, and records the image file into the designated directory in the memory card 22.

[0029]FIG. 2 is a schematic diagram showing an example of a file construction in the memory card 22.

[0030] Next, explanation will be made, with reference to FIG. 2, of an operation of managing directory names in the file system in the memory card 22 according to the image pickup apparatus 100 of the present embodiment.

[0031] In FIG. 2, reference numerals 40, 42 and 44 are directories for saving compressed image files. Rules for generating names of the compressed image files are as follows.

[0032] Namely, a 4-digit character string and 4-digit numerical value, which are designated by the maker, can be positioned before the extension (which is positioned after the period) such that with each new image a value of 1 is added to the 3-digit portion within the four digits, so that the name goes from ABCD00001.jpg to ABCD0100.jpg, for example.

[0033] In the present embodiment, when the file names of a given directory reach ABCD0100.jpg, then the next image file is saved to a subsequent directory. In the present embodiment the upper five digits of the file name are fixed, but it is also possible to change them with respect to each directory.

[0034] According to the example shown in FIG. 2, a directory 40 is created at the time when a compressed file of the image which was taken first is saved. At this time, according to the present embodiment, the name containing the creation date is added to the directory 40. For example, if the directory 40 was created on Jan. 1, 2000, then the directory name will be “20000101_”. In the example shown in FIG. 2, the maximum number of image files, namely image files of up to “ABCD0100.jpg” are stored in the directory 40, so the image file which is to be taken next will be stored in a second directory 42.

[0035] According to the present embodiment, when the photographed image file is to be saved to a new directory, the creation date (for example, Jan. 15, 2000) of the image file that was last stored in a directory immediately before saving into the new directory is added onto the name of that. Thus, the name of the directory 40 will be “2000101_(—)20000115”, as shown in FIG. 2.

[0036] To sum up the above explanation, the directory name in the present embodiment is “date1_” or “date1_date2”. Date1 indicates the date on which the image file first stored in that directory was created, and Date2 indicates the date on which the image file that was stored last was created. Therefore, the former directory name indicates a directory in which image files may still be stored, and the latter one indicates a directory which already stores the maximum number of image files. Determining the directory names in this way enables the user to easily recognize from the directory names the dates (or ranges thereof) on which the images stored in each directory were created.

[0037]FIG. 3 is a flowchart of processes of the control circuit 26 managing and generating the directory name, which processes are performed in conjunction with the operation of taking the photographic image, in the recording mode according to the image pickup apparatus of the present embodiment. The processing shown in FIG. 3 is started when the photographing is executed by means of operations performed by the user and the compressed image data that is generated is written to the memory card 22.

[0038] A judgment is made as to whether the format of the last existing directory name (Last Dir Name) is “Date1_Date2” or not (step S1). Date1 is the creation date of that directory, and date2 is the date when the directory was closed. In the case when the last directory is still possible to store an image file, the last directory name is “Date1_”. In this case the directory is open, or, it is not closed.

[0039] In the case when a newly photographed image file is to be saved in a directory (step S1), the new photographic image (i.e., the compressed image data thereof) is saved to the directory “Date1_” with the file name “ABCDXXXX.jpg” (step S2). The “XXXX” in the file name is a consecutive number, such that when there is a file “ABCD0030.jpg” inside the directory the XXXX will be 0031.

[0040] Next, confirmation is made as to whether the image file “ABCDXXXX.jpg” of the photographed image is the last image file which will be able to be stored in that directory or not (step S3). That is, confirmation is made as to whether a condition that is designated in advance as the condition for closing the directory has been met. For example, in the case when 100 image files of from “ABCD0000.jpg” to “ABCD0100.jpg” can be stored in one directory, then confirmation is made as to whether the file name of the image file which is to be stored is “ABCD0100.jpg” or not. Of course, it is also possible to count the number of image files already stored in that directory to make this judgment.

[0041] Further, in the case of a system in which the subsequent directory is created forcibly by operations performed by the user, then it is possible to make this judgement based on instructions to make the new directory.

[0042] In the case when the file will be the last image file that can be stored (step S3), an attribution of the image files being stored in that directory is detected, and a photographing date of the image file that was taken last is confirmed. Then, the name of that directory is changed from “Date1_” to “Date1_Date3”. Here, Date3 is the photographing date of the image file stored last. Normally, Date3 is the present date.

[0043] In the case when the format of the name of the last existing directory (Last Dir Name) is “Date1_Date2” (step S1), a new directory “Date3_” is generated having the name corresponding to the photographing date Date3 of the image file which is to be stored (step S5), and the newly taken image file is saved to the directory “Date3_” with the file name “ABCD0001.jpg” (step S6).

[0044] The “Design rule for Camera File system” (hereinafter, referred to as “DCF”), which is the camera systems standard established by the Japan Electronics and Information Technology Industries Association, defines certain rules for the determination of directory names and file names. In order to conform to the DCF standard it is sufficient to add DCF numbers to the beginning of the directory name that has been described above. Alternatively, in a system for making an alias file indicating the directory, it is sufficient to configure the system so as to add to the alias name a date such as the date explained above.

[0045] Next, explanation will be made of a process of changing the directory name in a reproduction mode. According to the reproduction mode it is possible to reproduce an image file as designated from among the image files stored in the memory card 22, and it is also possible to delete the designated image file from the memory card 22. The directory name is changed also in the case when the range of the photographing dates of the image files stored in the directory is changed due to the deletion of the image file as described above.

[0046] In other words, when deletion of an image file stored in a directory is executed, the control circuit 26 confirms the attribution of the image file which has been designated for deletion and also the attribution of the image files stored in the directory, and the control circuit 26 detects the photographing date and time of each of the image files. Then it changes the directory name according to the detected photographing date and time.

[0047] For example, consider a case in which the photographing date is Jan. 15, 2000 for the image file which has the name ABCD0100.jpg and has been designated for deletion from the directory 40 having the name “20000101_(—)20000115” shown in FIG. 2. In this case, the latest photographing date is detected from among the photographing dates of the image files stored in directory 40, and the directory name is changed. For example, in the case when an image file having a file name ABCD0099.jpg has the latest photographing date and its photographing date is Jan. 10, 2000, then the control circuit 26 changes the directory name to “20000101_(—)20000110”.

[0048] Hereinafter, the flow chart of FIG. 4 will be used to make explanation of processing of the control circuit 26 which is performed in conjunction with above-mentioned deletion of the file.

[0049] In the reproduction mode, when the image file which is to be deleted is designated by the user and the deletion of the file is instructed, then the operation flow shown in FIG. 4 starts.

[0050] First, the directory name of the image file designated for deletion and the attribution (i.e., photographing date) thereof is detected (step S11). Next, a detection is made to determine whether the detected photographing date is equivalent to the Date1 in the directory name, which is to say that a determination is made as to whether the detected photographing date is the same as the oldest photographing date from among photographing dates of the image files stored in that directory (step S12). In the case when the photographing date is equivalent to the Date1, then the attributions of all the image files in that directory are detected, and the oldest date from among the photographing dates of all the files in the directory is detected (step S13). Then the directory name Date1 is changed based on the oldest photographing date detected.

[0051] For example, consider a case in which the photographing date is Apr. 5, 2000 for a file which has a file name of ABCD0005.jpg and has been designated for deletion from among the image files 48 stored in the directory 42 shown in FIG. 2, and the image file having the oldest photographing date from among the remaining image files 48 is a file ABCD0012.jpg which has a photographing date of Apr. 10, 2000. In this case, the “20000405” which corresponds to the Date1 in the directory name 42 is changed to “20000410”.

[0052] Further, at step S12, in the case when the photographing date of the designated image file differs from Date1, the processing proceeds immediately to step S15.

[0053] Next, at step S15, a detection is made to determine whether the directory name has become “Date1_Date2” or not, and in the case when this is not so, that is, when the directory name is simply “Date1_”, then the processing ends at this point.

[0054] On the other hand, in the case when the directory name has become “Date1_Date2”, then a detection is made to confirm whether the photographing date of the designated image file is the same as Date2 or not (step S16). In the case when it is not the same it is not necessary to change the directory name, and so the processing ends at this point.

[0055] Further, in the case when the photographing date of the designated image file is the same as the directory name Date2, then the latest photographing date is detected from among the photographing dates of all the image files in that directory (step S17), and the Date2 is changed based on this latest photographing date (step S18).

[0056] For example, consider a case in which the photographing date is Apr. 20, 2000 for the file which has a file name of ABCD0100.jpg and has been designated for deletion from among the image files 48 stored in the directory 42 shown in FIG. 2, and the image file having the latest photographing date from among the remaining image files 48 is a file ABCD0099.jpg which has a photographing date of Apr. 15, 2000. In this case, the “20000420” which corresponds to the Date2 in the directory name 42 is changed to “20000415”.

[0057] In this way, according to the present embodiment the directory name is automatically set as a name which indicates the oldest and the latest of the photographing dates from among photographing dates of the image files being stored in that directory, so the user only needs to confirm the directory name in order to find out the range of the photographing dates of the image files stored in that directory.

[0058] Note that, in the recording mode according to the present embodiment, when a predetermined number of image files for one directory, such as the 100 image files, has been recorded, then the directory name was set according to a format of “Date1_Date2” when the next image file is to be recorded. However, another construction is possible in which the latest photographing date in the directory is detected each time the photographing of one image file is completed, and then the directory name is automatically changed to the format of “Date1_Date2”. According to this construction, regardless of when the image files in the memory card 22 are verified from the PC, the user only needs to confirm the directory name in order to find out the range of the photographing dates of the image files stored in that directory.

[0059] Note that explanation was made of the present embodiment only regarding the case in which the present invention is applied to an apparatus for recording and reproducing still image files to and from a memory card. However, in addition to this, the present invention may be applied to, and can realize similar effects when used in, an apparatus which uses other recording media such as a disk medium, or the present invention can be applied to an apparatus which uses other information data files such as moving image files or voice files.

[0060] Many widely different embodiments of the present invention may be constructed without departing from the spirit and scope of the present invention. It should be understood that the present invention is not limited to the specific embodiments described in the specification, except as defined in the appended claims. 

What is claimed is:
 1. A recording apparatus comprising: a recording medium interface arranged to create a plurality of information files under a directory and record the information files on a recording medium; a creation date detection means for detecting creation dates of the information files; and a control means for changing a name of the directory to a name indicating a creation date detected by said creation date detection means, according to a predetermined change in a storage state of the information files in the directory.
 2. An apparatus according to claim 1, wherein said control means changes the name of the directory to a name indicating the creation date of a new information file, according to an addition of the new information file to the directory.
 3. An apparatus according to claim 1, wherein said control means changes the name of the directory according to a deletion of a designated information file in the directory.
 4. An apparatus according to claim 3, wherein said control means changes the name of the directory based on the creation dates of a plurality of information files excluding the designated information file from among the plurality of information files in the directory.
 5. An apparatus according to claim 4, wherein said control means changes the name of the directory to a name indicating the oldest creation date and the latest creation date from among the creation dates of the plurality of information files in the directory excluding the designated information file.
 6. An apparatus according to claim 1, wherein said control means changes the name of the directory according to the fact that the information files stored in the directory has exceeded a predetermined number.
 7. An apparatus according to claim 6, wherein said control means changes the name of the directory from a name indicating the oldest creation date from among the creation dates of the plurality of information files stored in the directory, to a name indicating both the oldest creation date and the latest creation date.
 8. A recording apparatus comprising: a recording medium interface arranged to create under a directory a plurality of information files each having information data and creation date information, and record the information files on a recording medium; and a control means for changing a name of the directory according to a change in a range of the creation dates of the files stored in the directory.
 9. An apparatus according to claim 8, wherein said control means changes the name of the directory to a name indicating the range of the creation dates after the change of the range.
 10. An apparatus according to claim 8, wherein said control means detects the change in the creation dates according to an instruction to add a new information file to the directory.
 11. An apparatus according to claim 8, wherein said control means detects the change in the creation dates according to an instruction to delete an information file from the directory.
 12. An apparatus according to claim 8, further comprising image pickup means, wherein the information data contains image data obtained by said image pickup means.
 13. A recording apparatus comprising: a writing means for creating a plurality of information files under a directory and storing them on a recording medium; an attribution detection means for detecting attributions of the information files stored in the directory; and a control means for changing a name of the directory to a predetermined name reflecting results of the detection by said attribution detection means, according to a predetermined change in a storage status of the information files in the directory.
 14. An apparatus according to claim 13, wherein said control means changes the name of the directory according to the fact that the number of the information files stored in the directory has exceeded a predetermined number.
 15. An apparatus according to claim 13, wherein said control means changes the name of the directory according to an addition of a new information file to the directory.
 16. An apparatus according to claim 13, wherein said control means changes the name of the directory according to a deletion of an information file from the directory.
 17. A recording apparatus comprising: a writing means for creating a plurality of information files under a first directory and storing them to a recording medium; an attribution detection means for detecting attributions of the information files stored in the first directory; and a control means for changing a name of the first directory to a predetermined name reflecting results of the detection by said attribution detection means, according to an instruction to create a new directory.
 18. A method of recording information files, comprising the steps of: creating a plurality of information files under a directory with a recording medium interface, to record the information files on a recording medium; detecting creation dates of the information files; and effecting a control to change a name of the directory to a name indicating a creation date detected in said creation date detection step, according to a predetermined change in a storage state of the information files in the directory.
 19. A method according to claim 18, wherein, said controlling step includes a step of changing the name of the directory to a name indicating the creation date of a new information file, according to an addition of the new information file to the directory.
 20. A method according to claim 18, wherein, said controlling step includes a step of changing the name of the directory according to a deletion of a designated information file in the directory.
 21. A method according to claim 20, wherein, said controlling step includes a step of changing the name of the directory based on the creation dates of a plurality of information files excluding the designated information file from among the plurality of information files in the directory.
 22. A method according to claim 21, wherein, said controlling step includes a step of changing the name of the directory to a name indicating the oldest creation date and the latest creation date from among the creation dates of the plurality of information files in the directory excluding the designated information file.
 23. A method according to claim 18, wherein said controlling step includes a step of changing the name of the directory according to the fact that the information files stored in the directory has exceeded a predetermined number.
 24. A method according to claim 23, wherein said controlling step includes a step of changing the name of the directory from a name indicating the oldest creation date from among the creation dates of the plurality of information files stored in the directory, to a name indicating both the oldest creation date and the latest creation date.
 25. A method of recording information files, comprising the steps of: creating under a directory with a recording medium interface, a plurality of information files, each having information data and creation date information, to record the information files on a recording medium; and effecting a control to change a name of the directory according to a change in a range of the creation dates of the files stored in the directory.
 26. A method according to claim 25, wherein, said controlling step includes a step of changing the name of the directory to a name indicating the range of the creation dates after the change of the range.
 27. A method according to claim 25, wherein, said controlling step includes a step of detecting the change in the creation dates according to an instruction to add a new information file to the directory.
 28. A method according to claim 25, wherein, said controlling step includes a step of detecting the change in the creation dates according to an instruction to delete an information file from the directory.
 29. A method according to claim 25, further comprising an image pickup step, wherein the information data contains image data obtained in said image pickup step.
 30. A method of recording information files, comprising the steps of: creating a plurality of information files under a directory and storing them to a recording medium; detecting attributions of the information files stored in the directory; and effecting a control for changing a name of the directory to a predetermined name reflecting results of the detection by said attribution detection step, according to a predetermined change in a storage status of the information files in the directory.
 31. A method according to claim 30, wherein, said controlling step includes a step of changing the name of the directory according to the fact that the number of the information files stored in the directory has exceeded a predetermined number.
 32. A method to claim 30, wherein, said controlling step includes a step of changing the name of the directory according to an addition of a new information file to the directory.
 33. A method to claim 30, wherein, said controlling step includes a step of changing the name of the directory according to a deletion of an information file from the directory.
 34. A method of recording information files, comprising the steps of: creating a plurality of information files under a first directory and storing them to a recording medium; detecting attributions of the information files stored in the first directory; and effecting a control for changing a name of the first directory to a predetermined name reflecting results of the detection in said attribution detection step, according to an instruction to create a new directory. 